from cc_flask import create_app
import config
import os

env = os.environ.get('FLASK_ENV') or 'Dev'

if env == 'development':
    env = "Dev"

print("当前环境：", env)

app = create_app(getattr(config, env))

if __name__ == '__main__':
    app.run()
